package com.juvepoland.jpdroid.models;

public enum Rank {
	Admin(1), Juventino(2), Moderator(12);
	
	private int index;
	public int getIndex(){
		return this.index;
	}
	private Rank(int i){
		this.index = i;
	}
	public static Rank getRank(int x){
		for(Rank r : Rank.values()){
			if(r.getIndex() == x){
				return r;
			}
		}
		return null;
		
	}
}
